package cn.laixueit.pojo;

import cn.laixueit.mapper.UserMapper;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class UserService {


    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    private String[] names;
    private List<String> lists;
    private Set<String> sets;
    private Map<String,String> maps;

    public void setNames(String[] names) {
        this.names = names;
    }

    public void setLists(List<String> lists) {
        this.lists = lists;
    }

    public void setSets(Set<String> sets) {
        this.sets = sets;
    }

    public void setMaps(Map<String, String> maps) {
        this.maps = maps;
    }

    public void show(){
        System.out.println(Arrays.toString(names));
        System.out.println(lists);
        System.out.println(sets);
        System.out.println(maps);
    }

    public void add(){

        System.out.println("service  add...");
        userMapper.add();

    }

}
